<!--蚂蚁森林-->
<template>
  <div class="antForest">
    <el-row :gutter="10">
      <el-col :span="8">
        <el-card class="box-card">
          <div slot="header">
            <span class="header">数据总览</span>
          </div>
          <div class="box">
            <div class="item" v-for="(item, idx) in dataList" :key="idx">
              <h3>{{ item.label }}</h3>
              <p>{{ item.value }}</p>
            </div>
          </div>
        </el-card>
      </el-col>
      <el-col :span="8">
        <project-progress></project-progress>
      </el-col>
      <el-col :span="8">
        <!--植被覆盖情况-->
        <coverage-situation></coverage-situation>
      </el-col>
    </el-row>
    <el-row :gutter="20">
      <el-col :span="12">
        <investment-details></investment-details>
      </el-col>
      <el-col :span="12">
        <!--投入预算总览-->
        <budget-overview></budget-overview>
        <!--巡林任务安排-->
        <task-arrangement></task-arrangement>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import coverageSituation from './components/coverageSituation'
import projectProgress from './components/projectProgress'
import BudgetOverview from '@/views/projectKanban/components/budgetOverview'
import investmentDetails from './components/investmentDetails'
import taskArrangement from './components/taskArrangement'

export default {
  name: 'antForest',
  components: { BudgetOverview, coverageSituation, projectProgress,investmentDetails ,taskArrangement},
  data() {
    return {
      dataList: [
        { label: '总目标', value: '100万亩' },
        { label: '作业面积', value: '9010亩' },
        { label: '围栏', value: '30000延长米' },
        { label: '总投资', value: '427.50万元' },
        { label: '实施年限', value: '3年' },
        { label: '造林作业区', value: '6个' },
        { label: '总控制面积', value: '9818亩' },
        { label: '标示牌', value: '2个' },
        { label: '项目性质', value: '新建' }
      ]
    }
  }
}
</script>

<style scoped lang="scss">
.antForest {
  background: #f5f5f5;
  padding: 10px 6px;

  .box {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    height: 300px;
    overflow-y: auto;

    .item {
      width: 140px;
      border: 1px solid #3db99a;
      border-radius: 15px;
      background-color: #F5FBFA;

      h3 {
        margin-bottom: 20px;
        margin-left: 40px;
        font-size: 16px;
        font-weight: bold;
        position: relative;

        &:before {
          content: ' ';
          position: absolute;
          left: -25px;
          top: 40%;
          transform: translateY(-50%);
          width: 10px;
          border-radius: 10px;
          height: 10px;
          background-color: #3db99a;
        }
      }

      p {
        margin-top: 0;
        margin-left: 40px;
        font-size: 14px;
      }
    }
  }
}

.header {
  color: #11A983;
}

.box-card {
  margin-bottom: 10px;
}
</style>
